package cn.chenchao.eshop.goods.dao.imp;
import cn.chenchao.eshop.common.dao.imp.BaseDaoImpl;
import cn.chenchao.eshop.goods.dao.GoodsDAO;
import cn.chenchao.eshop.goods.entity.Goods;

import java.util.List;

/**
 * @encoding : UTF-8
 * @Time : 2020/11/23 13:51
 * @Author : Chen Chao
 * @File : eshop.cn.chenchao.eshop.goods.dao.imp.GoodsDAOImpl.java
 * @Software : IntelliJ IDEA
 * @since : 1.8
 * 商品数据访问类
 */
public class GoodsDAOImpl extends BaseDaoImpl implements GoodsDAO {
    @Override
    public List<Goods> getEntityList() throws Exception {
        return textAccess.getList(Goods.class);
    }

    @Override
    public void insert2List(Goods goods) throws Exception {
        textAccess.insert2List(goods);
    }
}
